const TokenManager = {
	setToken(lesstion_token) {
		uni.setStorageSync("lesstion_token", lesstion_token)
	},
	getToken() {
		return uni.getStorageSync('lesstion_token')
	},
	getHeaderToken() {
		let lesstion_token = uni.getStorageSync("lesstion_token")
		if (!lesstion_token) {
			return undefined
		} else {
			return lesstion_token
		}
	},
	clear(){
		try {
			uni.clearStorageSync();
		} catch (e) {
			console.log(e);
		}

	}
}

export default {
	...TokenManager
}